package demo1;

import java.util.List;

public class TestDemo1 {
    public static void main(String[] args) {
        Game game = new Game();
        List<Poker> pokerList = game.buyPoker();

        System.out.println("生成牌：");
        System.out.println(pokerList);

        //洗牌
        System.out.println("洗牌：");
        game.shuffle1(pokerList);
        System.out.println(pokerList);
        game.shuffle2(pokerList);
        System.out.println(pokerList);

        //揭牌
        System.out.println("揭牌：");
        List<List<Poker>> lists = game.game(pokerList);
        for (int i = 0; i < lists.size(); i++) {
            System.out.println((char)('A' + i) +": " + lists.get(i));
        }

        System.out.println("剩下的牌：");
        System.out.println(pokerList);
    }
}
